<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String companySupSurname = (String)request.getSession().getAttribute("companySupSurname");
	String companySupFirstame = (String)request.getSession().getAttribute("companySupFirstame");
	String companySupEmail = (String)request.getSession().getAttribute("companySupEmail");
	String companySupCompany = (String)request.getSession().getAttribute("companySupCompany");
	int companySupCompanyID = (Integer)request.getSession().getAttribute("companySupCompanyID");
	String error1 = (String)request.getAttribute("error1");
%>
<html>
	<jsp:include page="StudentHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Student" />
	</jsp:include>
	<body OnLoad="showmenu(document.getElementById('smenu3'));">
		<jsp:include page="StudentPageHeader.jsp"></jsp:include>
		<div id="container">
			<jsp:include page="StudentMenu.jsp" ></jsp:include>
			<div id="content">
				<h3 class="posttitle">Student - Company Supervisor</h3>
				<div class="entry">
					<%	if(error1 == null)
						{
					%>
					<form name="viewComp" method="post">
						<input type="hidden" name="action" value="viewComp1">
						<input type="hidden" name="companyID" value="<%= companySupCompanyID %>">     
					</form> 
					<h4>Company: <%= companySupCompany %></h4> 
					<a href="javascript:document.viewComp.submit();" title="View <%= companySupCompany %>'s Details" >View</a></p>
					<br>
					<input type="hidden" name="action" value="viewComp1">
					<p> Surname: <%= companySupSurname %></p>
					<p> First Name: <%= companySupFirstame %></p>
					<p> Email: <%= companySupEmail %></p>
					
					<%	}
						else
						{
					%>
							<p><%= error1 %><p>
					<%	}
					%>
				</div>
	    	</div>
			<jsp:include page="StudentPageFooter.jsp"></jsp:include>
		</div>
	</body>
</html>